import request from '@/utils/request'

// 获取企业列表数据
export const getEnterpriseList = params => {
  return request({
    url: '/enterprise/list',
    params
  })
}

// 更改企业状态
export const changeStatus = id => {
  return request({
    url: '/enterprise/status',
    method: 'POST',
    data: {
      id
    }
  })
}

// 删除
export const delEnterprise = id => {
  return request({
    url: '/enterprise/remove',
    method: 'POST',
    data: {
      id
    }
  })
}

// 新增企业
export const addEnterprise = data => {
  return request({
    url: '/enterprise/add',
    method: 'POST',
    data
  })
}

// 修改企业
export const updateEnterprise = data => {
  return request({
    url: '/enterprise/edit',
    method: 'POST',
    data
  })
}
